﻿using System.Drawing;

namespace CanvasControl.Model
{
    public static class Utils
    {
        public static Point Translate(this Point current, Point relativeTo)
        {
            return new Point(current.X - relativeTo.X, current.Y - relativeTo.Y);
        }

        public static Point Move(this Point point, Point relativeTo)
        {
            return new Point(point.X + relativeTo.X, point.Y + relativeTo.Y);
        }
    }
}